﻿using System;
using MultiViewer.Network;

public class SimpleNetworkApp
{
    public static void Main(string[] args)
    {
        try
        {
            Node current = Node.Start(args);
            Console.WriteLine("Node {0} of {1} is started", current.NodeID + 1, current.NodeCount);
            while (true)
            {
                string s = Console.ReadLine();
                //if (!String.IsNullOrEmpty(s))
                //    current.Notify(s);
                //else
                //    break;
            }
            current.Stop();
        }
        catch (Exception exc)
        {
            Console.WriteLine("Exception: {0}", exc.Message);
        }
    }
}